<?php

namespace App\Helper;

use App\Models\Role\Institution;
use App\Models\Role\InstitutionWechat;

class EnvHelper
{
//    static public function currentInstitution()
//    {
//        $host        = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
//        $institution = Institution::where('host', $host)->first();
//
//        return $institution;
//    }
//
//    static public function currentUser()
//    {
//
//    }
//
//    static public function currentWechat()
//    {
//        $institution = self::currentInstitution();
//        $institutionWechat = InstitutionWechat::where('institution_id',$institution->id)->first();
//
//        $officialAccount = [
//            'app_id' =>  $institutionWechat->wechat_official_account_appid,     // AppID
//            'secret' => $institutionWechat->wechat_official_account_secret,     // AppSecret
//            'token' => $institutionWechat->wechat_official_account_token,       // Token
//            // 'aes_key' => $institutionWechat->wechat_official_account_aes_key,   // EncodingAESKey
//        ];
//
//        return $officialAccount;
//    }
}
